package com.wx.service;


import java.util.List;


import com.wx.model.Books;


import com.wx.model.BookType;
import com.wx.model.Books;

public interface BookService {
	
	public Books bookMsg(int bookid,String username) throws Exception;
	public List<BookType> queryAlltype()throws Exception;
	
	public boolean addBook(Books book) throws Exception;
	
	public List<Books> querybook(int pageNum , int pageSize)throws Exception;
	
	public int queryBookSum()throws Exception;
	
	//条件查询
	public List<Books> queryBookById(int pageNum , int pageSize,int typeid)throws Exception;
	//条件查询总数
	public int queryBookSumById(int typeid)throws Exception;
	//添加图书类
	public boolean addBookType(String typename)throws Exception;
	
}
